{"ast":null,"code":"import apiClient from \"../http\";\nimport { addContact, getContacts } from \"../routes\";\nexport default class ContactService {\n  static async getContacts() {\n    return apiClient.get(getContacts());\n  }\n  static async addContact(otherUserId) {\n    return apiClient.get(addContact(otherUserId));\n  }\n  static async acceptContact(contactId) {\n    return apiClient.get(addContact(otherUserId));\n  }\n}","map":{"version":3,"names":["apiClient","addContact","getContacts","ContactService","get","otherUserId","acceptContact","contactId"],"sources":["/data/messenger.client/src/services/ContactService.ts"],"sourcesContent":["import apiClient from \"../http\";\nimport {AxiosResponse} from 'axios';\nimport {addContact, getContacts} from \"../routes\"\nimport {ContactListResponse} from \"../models/response/ContactListResponse\";\nimport {ContactListItem} from \"../models/response/ContactListItem\";\n\nexport default class ContactService {\n    public static async getContacts(): Promise<AxiosResponse<ContactListResponse>> {\n        return apiClient.get<ContactListResponse>(getContacts());\n    }\n\n    public static async addContact(otherUserId: string): Promise<AxiosResponse<ContactListItem>> {\n        return apiClient.get<ContactListItem>(addContact(otherUserId));\n    }\n\n    public static async acceptContact(contactId: string): Promise<AxiosResponse<ContactListItem>> {\n        return apiClient.get<ContactListItem>(addContact(otherUserId));\n    }\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,SAAS;AAE/B,SAAQC,UAAU,EAAEC,WAAW,QAAO,WAAW;AAIjD,eAAe,MAAMC,cAAc,CAAC;EAChC,aAAoBD,WAAW,GAAgD;IAC3E,OAAOF,SAAS,CAACI,GAAG,CAAsBF,WAAW,EAAE,CAAC;EAC5D;EAEA,aAAoBD,UAAU,CAACI,WAAmB,EAA2C;IACzF,OAAOL,SAAS,CAACI,GAAG,CAAkBH,UAAU,CAACI,WAAW,CAAC,CAAC;EAClE;EAEA,aAAoBC,aAAa,CAACC,SAAiB,EAA2C;IAC1F,OAAOP,SAAS,CAACI,GAAG,CAAkBH,UAAU,CAACI,WAAW,CAAC,CAAC;EAClE;AACJ"},"metadata":{},"sourceType":"module"}